//
//  YBAuthResponseCode.h
//  YBWifiAuthSDK
//
//  Created by yiban on 16/1/22.
//  Copyright © 2016年 yiban. All rights reserved.
//

#import <Foundation/Foundation.h>

#ifndef __YBAuthResponseCode
#define __YBAuthResponseCode

#pragma mark - 状态码相关
typedef NS_ENUM(NSInteger, YBResponseCode) {
    RESPONSECODE_SUCCESS = 100,//    100	成功
    RESPONSECODE_FAILD = 101,//    101	失败
    RESPONSECODE_REQPARAMERROR = 105,//    105	请求参数不合法
    RESPONSECODE_SESSIDEXPIRE = 106,//    106	sessID过期
    RESPONSECODE_REFRESHTIP = 140,//    140	被防刷的提示
    RESPONSECODE_ERRORCLIENT = 180,//    180	非法客户端类型
    //
    RESPONSECODE_REDISCONNERR = 200,//    200	连接到redis失败
    RESPONSECODE_LOADREDISCONFERR = 201,//    201	加载redis配置失败
    RESPONSECODE_MONGOCONNERR = 210,//    210	连接到Mongo失败
    RESPONSECODE_LOADMONGOCONFERR = 211,//    211	加载Mongo配置失败
    //    
    RESPONSECODE_METHODPARAMERR = 400,//    400	方法参数有错误
    RESPONSECODE_PHONEISEXIST = 410,//    410	手机号已经存在
    RESPONSECODE_SENDSMSERR = 411,//    411	短信发送失败
    RESPONSECODE_AUTHSMSERR = 412,//    412	短信验证码验证失败
    RESPONSECODE_SAVADATAERR = 413,//    413	保存数据失败
    RESPONSECODE_USERNAMENOEXIST = 414,//    414	用户名不存在
    RESPONSECODE_PASSWDERR = 415,//    415	用户密码不正确
    RESPONSECODE_NOSCHOOLINFO = 416,//    416	无该学校信息
    RESPONSECODE_UPDATEDATAERR = 417,//    417	更新数据失败
    RESPONSECODE_SCAUTHUSERERR = 418,//    418	校方认证用户失败
    RESPONSECODE_PHONEFORMATERR = 419,//    419	手机格式有误
    RESPONSECODE_MAILFORMATERR = 420,//    420	邮箱格式有误
    RESPONSECODE_GREATERSENDCOUNT = 421,//    421	已达到每日发送次数
    RESPONSECODE_USERNOEXIST = 422,//    422	该用户不存在
    RESPONSECODE_SCAUTHDATASAVEERR = 423,//    423	校方验证数据保存失败
    //    
    RESPONSECODE_USERTABLEOPTERR = 424,//    424	User表操作失败
    RESPONSECODE_USERINFOTABLEOPTERR = 425,//    425	Userinfo表操作失败
    RESPONSECODE_USERMAILTABLEOPTERR = 426,//    426	UserMail表操作失败
    RESPONSECODE_SENDMAILERR = 427,//    427	邮件发送失败
    RESPONSECODE_USERNAMETABLEOPTERR = 428,//    428	Username表操作失败
    RESPONSECODE_ADDFRIENDERR = 429,//    429	添加好友失败
    RESPONSECODE_DELFRIENDERR = 430,//    430	删除好友失败
    RESPONSECODE_DELGROUPMEMERR = 431,//    431	删除组成员失败
    RESPONSECODE_UPTATEFRIENDDESERR = 432,//    432	更新好友备注名失败
    RESPONSECODE_ADDGROUPERR = 433,//    433	添加群组失败
    RESPONSECODE_UPDATEGROUPERR = 434,//    434	更新群组失败
    RESPONSECODE_DELGROUPERR = 435,//    435	删除群组失败
    RESPONSECODE_NOADDFORFRIEND = 436,//    436	双方已经是好友， 无法再次添加
    RESPONSECODE_ADDGROUPMEMBERERR = 437,//    437	添加组内成员失败
    RESPONSECODE_DELGROUPMEMBERERR = 438,//    438	删除组内成员失败
    //
    RESPONSECODE_UNKNOWN = 900,//    900	未知错误
    RESPONSECODE_SEEERRLOG = 901,//    901	查看错误日志
};
#endif
